// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
Vue.use(ViewUI);
import VueLazyload from 'vue-lazyload'    //图片懒加载
Vue.use(VueLazyload, {
	loading: require('@/assets/img/1.jpg'),//加载中图片，一定要有，不然会一直重复加载占位图
    error: require('@/assets/img/1.jpg')  //加载失败图片
})
Vue.config.productionTip = false
import '@/assets/iocu/iconfont.css';
import store from '@/store/index.js'            //vuex
import api from '@/api/index.js'                       //api
Vue.prototype.$api = api;
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
